const state = {
  condition: {
    radio: 1,
    time: '',
    dateTimes: '',
    projectId: ''
  },
  dispose: {
    projectId: '',
    projectIdList: [],
    options: [],
    optionsList: [],
    weeks: '',
    deliver_center: [],
    project_level: '',
    oriProjectIDList: [],
    levels: []
  },
  projectReportDetail: {
    project_total_condition: '',
    risk_self_assessment: '',
    current_week_outcome: '',
    next_week_plan: '',
    project_condition: [],
    risk_highlight: [],
  },
}

const mutations = {
  setCondition: (state, condition) => {
    state.condition = {...(state.condition), ...condition}
  },
  setDispose: (state, dispose) => {
    state.dispose = {...(state.dispose), ...dispose}
  },
  setProjectReportDetail: (state, projectReportDetail) => {
    state.projectReportDetail = {...(state.projectReportDetail), ...projectReportDetail}
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
